package com.smart.manager.weixin.mp.entities.bodys;

import com.smart.common.entities.core.BaseSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * rsystem模型
 *
 * @author xiaxuqiu
 * @date 2023/03/26
 */
public class RWeixinMpTags {

    @Data
    @EqualsAndHashCode(callSuper = true)
    @ApiModel("RWeixnMpTags1")
    public static class SearchBody extends BaseSearch {


        @ApiModelProperty("公众号名称")
        private String name;

        @ApiModelProperty(value = "公众号appid")
        private String appId;


    }


    @Data
    @ApiModel("RWeixnMpTags2")
    public static class EditBody implements Serializable {

        @ApiModelProperty("appId")
        @Length(max = 30, message = "appId 不能超过30个字符")
        @NotNull(message = " appId  不能为空")
        private String appId;


        @ApiModelProperty(value = "分组名称")
        @Length(max = 30, message = "分组名称 不能超过30个字符")
        @NotBlank(message = " 分组名称  不能为空")
        private String tagName;

    }


}
